import request from '../../utils/request.js'
const state = {
	categoryList: []
}
const getters = {}
const mutations = {
	changeCateGoryMutation(state, payload) {
		state.categoryList = payload
	}
}
const actions = {
	async getCateGoryDataAction({
		commit
	}) {
		const res = await request('/getCateGoryData')
		commit('changeCateGoryMutation', res)
	}
}
export default {
	namespaced: true,
	state,
	getters,
	mutations,
	actions
}
